package mya_dc.slave;

import java.io.Serializable;

/**
 * Stores Slave GUI information to be serialized to a file
 * 
 * @author      Yuval Shimron
 * <br>			MYA
 */

public class GUIdata implements Serializable
{
	private static final long serialVersionUID = 1L;
	public String sServerIP;
	public String sServerPort;
	public String sListenPort;
	public boolean bMinimize;
	public boolean bNotify;
	private transient SlaveGUI mParentGUI ;
	
	/**
	 * Constructor - Stores data from GUI
	 *
	 * @param	ParentGUI - The GUI class
	 */	
	public GUIdata(SlaveGUI ParentGUI)
	{
		mParentGUI = ParentGUI;
		sServerIP = mParentGUI.textHostNameIP.getText();
		sServerPort = mParentGUI.textServerPort.getText();
		sListenPort = mParentGUI.textListenPort.getText();
		bMinimize = mParentGUI.m_minimizeOnConnectionCheckBox.isSelected();
		bNotify = mParentGUI.m_notifyCheckBox.isSelected();
	}
}
